/*pmFWCFu5nhKkBzYmrkBakXNT0YErLrPC4gji/9NriLKiYq+dqg5C7Ltooq33619h*/
import {ajax} from 'nc-lightapp-front';

export default function (props) {
	let appcode = props.getSearchParam('c'); //获取小应用编码
	let pagecode = props.getSearchParam('p'); //获取页面编码
	if(appcode!=props.getSearchParam('p').substring(0,8)){
		appcode=props.getSearchParam('p').substring(0,8);
	}
	ajax({
		url: '/nccloud/platform/appregister/queryallbtns.do',
		data: {
			pagecode: pagecode,
			appcode: appcode
		},
		async: false,
		success: (res) => {
			if (res.data) {
				let button  = res.data;
				props.button.setButtons(button);
			}
		}
	})
}




/*pmFWCFu5nhKkBzYmrkBakXNT0YErLrPC4gji/9NriLKiYq+dqg5C7Ltooq33619h*/